<script setup>
const props = defineProps({
  message: {
    type: String,
    default: 'Default Message',
    required: false
  }
})
const emit = defineEmits(['giveChildCall'])
function callParentMethod() {
  emit('giveChildCall', 'child传给父组件的数据')
}
</script>
<template>
  <h2>{{ message || 'No Message Display' }}</h2>
  <button @click="callParentMethod">Change Parent Message</button>
</template>
<style></style>